#!/usr/bin/node 

const Writable = require('stream').Writable,
      chalk = require('chalk');

let c = 'a'.charCodeAt(0);

function GreenStream(){

  Writable.call(this);

  this._write=(chunk,encoding,callback)=>{
    process.stdout.write('\033[1;32m' +chalk.green(chunk)+'\033[1;37m');
    callback();
  }
}
GreenStream.prototype = Writable.prototype;

let ns = new GreenStream();
process.stdin.pipe(ns);
